package cn.wolfcode.service;

import cn.wolfcode.Condition;
import cn.wolfcode.domain.OrderInfo;
import cn.wolfcode.domain.Product;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IProductService {

    List<Product> selectByIdList(List<Long> idList);

    void addOrder(OrderInfo orderInfo);

    List<Product> findAll();

    PageInfo<OrderInfo> conditionFindByPage(Integer page, Integer pageSize, Condition condition);

    void updateOrder(OrderInfo orderInfo);

    void batchDeleteOrder(List<Long> ids);

    Product findById(Long id);
}
